<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PKU跳蚤市场</title>
    <link rel="icon" href="/images/logo.svg" type="image/svg+xml">
    <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="/css/index.css">
    <link rel="stylesheet" href="/components/navbar.css">
</head>
<body>
    <!-- 插入导航栏 -->
    <div id="navbar-container"></div>

    <!-- 主要内容 -->
    <div class="hero">
        <h1>欢迎来到PKU跳蚤市场</h1>
        <p>在这里，你可以轻松买卖二手物品，让闲置物品流转起来</p>
        <div class="hero-buttons">
            <!-- 按钮将由JavaScript动态填充 -->
        </div>
    </div>

    <div class="features">
        <div class="feature-card">
            <div class="feature-icon">🛍️</div>
            <h3>便捷交易</h3>
            <p>简单快捷的交易流程，让买卖二手物品变得轻松愉快</p>
        </div>
        <div class="feature-card">
            <div class="feature-icon">🔒</div>
            <h3>安全可靠</h3>
            <p>严格的用户认证机制，确保交易安全可靠</p>
        </div>
        <div class="feature-card">
            <div class="feature-icon">🌱</div>
            <h3>环保理念</h3>
            <p>促进物品循环利用，践行环保理念</p>
        </div>
    </div>

    <!-- 公共脚本 -->
    <script src="/js/jquery.min.js"></script>
    <script src="/js/common.js"></script>
    <!-- 动态加载导航栏 -->
    <script>
    $(function(){
        $("#navbar-container").load("/components/navbar.html");
    });
    </script>
    <!-- 页面专属脚本 -->
    <script src="/js/index.js"></script>
</body>
</html> 